public class Zuoye4 {
    public static void main(String[] args) {
//        double a[]=new double[8];
        double a[]={1,2,3,4,5,6,7,8};
        int b=1;
        for(int i=0;i<=a.length-1;i++)
        {
            b*=a[i];
        }
        System.out.println(b);
    }
}
